<!--
 * @Author: 生俊甫 1758142861@qq.com
 * @Date: 2024-05-30 17:26:15
 * @LastEditors: 生俊甫 1758142861@qq.com
 * @LastEditTime: 2024-06-16 16:13:38
 * @FilePath: \html5-main\html5-main\html\search-results.html
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>搜索结果</title>
</head>
<body>

<h1>搜索结果</h1>

<div id="search-results"></div>

<script>
    // 获取传递的搜索结果
    const params = new URLSearchParams(window.location.search);
    const searchTerm = params.get('term');

    // 显示搜索结果
    const searchResultsDiv = document.getElementById('search-results');
    if (searchTerm) {
        searchResultsDiv.innerHTML = `<p>找到匹配结果：${searchTerm}</p>`;
    } else {
        searchResultsDiv.innerHTML = `<p>未找到匹配结果。</p>`;
    }
    
</script>

</body>
</html>
